package serviceImpl;

import model.User;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.UserDAO;
import daoImpl.UserDAOImpl;
import service.UserService;

@Service("userServiceImpl")
public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserDAO userDAO;

	@Override
	public Boolean login(User user) {
		return userDAO.login(user);
	}

	@Override
	public Boolean register(User user) {
		return userDAO.saveUser(user);
	}

	@Override
	public User getUserInfo(User user) {
		// TODO Auto-generated method st
		User newUser = userDAO.getUserInfo(user);
		return newUser;
	}

}
